---
title: Archive
layout: page
---

{% for post in site.posts %}
    {% capture year %}{{ post.date | date: "%Y" }}{% endcapture %}
    {% capture month %}{{ post.date | date: "%b" }}{% endcapture %}
    {% capture nyear %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
    {% capture nmonth %}{{ post.previous.date | date: "%b" }}{% endcapture %}

    {% if forloop.first %}
  <div class="timeline">
      <h4 class="tl-year hidden-xs">Year {{ year }}</h4>
      <h5 class="tl-month hidden-xs">{{ month }}</h5>
      <ul class="tl-content">
    {% endif %}

    <li class="tl-title"><span>{{ post.date | date: "%Y - %m - %d" }}</span> &raquo; <a href="{{ post.url }}">{{ post.title }}</a></li>

    {% if forloop.last %}
      </ul>
    {% else %}
        {% if year != nyear %}
          </ul>
          <h4 class="tl-year hidden-xs">Year {{ nyear }}</h4>
          <h5 class="tl-month hidden-xs">{{ nmonth }}</h5>
          <ul class="tl-content">
        {% else %}
          {% if month != nmonth %}
          </ul>
            <h5 class="tl-month hidden-xs">{{ nmonth }}</h5>
            <ul class="tl-content">
          {% endif %}
        {% endif %}
    {% endif %}
{% endfor %}
</div>
